'use strict';

/**
 * @ngdoc function
 * @name jgappApp.controller:TaskNewdailyCtrl
 * @description
 * # TaskNewdailyCtrl
 * Controller of the jgappApp
 */
angular.module('jgappApp')
    .controller('TaskNewdailyCtrl', function(DataService, openApi, Util,$location) {
        this.submit = function() {
            if (!this.content) {
                Util.Toast("请填写日报内容");
                return;
            }
            var param = {};
            param.content = this.content
            DataService.getData(openApi.addDailylog, param).then(function(data) {
                Util.goBack();
            }.bind(this))
        }
    });
